package com.txts.road.app.device.model.dto;

import java.io.Serial;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import jakarta.validation.constraints.*;

/**
 * 设备配置表单对象
 *
 * @author baoyr
 * @since 2025-07-17 10:47
 */
@Getter
@Setter
@Schema(description = "设备配置表单对象")
public class DeviceConfigDTO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "配置ID")
    @NotNull(message = "配置ID不能为空")
    private Long id;

    @Schema(description = "设备ID")
    @NotNull(message = "设备ID不能为空")
    private Long deviceId;

    @Schema(description = "通知开关：0-关闭，1-开启")
    private Integer notificationEnabled;

    @Schema(description = "北斗设备参数配置")
    private String beidouParams;

    @Schema(description = "预设消息内容")
    private String presetMessages;

    @Schema(description = "远程上报协议内容")
    private String reportProtocol;
}
